package Eqwe;

import java.util.Scanner;

public class Cd {
	/*public static void main(String[] args) {
	int i=0,j=7;  
	int m=i/j;
	//while(i--!=i/j)
	//j=j+ 2;
	System.out.println(m); 
	}*/
	
	public static void main(String[] args) {
		double num1=Math.random();
		int a=(int)(num1*100);
		//System.out.println(a);
		
		Scanner sc = new Scanner(System.in);	
		int i=1;
		int num=6;
		while (i<= num) {
			i++;
			System.out.println("请输入数字");
			int num2=sc.nextInt();
			if (num2>a) {
				System.out.println("大了");
				continue;
			}else if(num2<a){
				System.out.println("小了");
				continue;
			}else {
				System.out.println("猜对了");
				break;
			}	
		}
		if (i>6) {
			System.out.println("你没机会了");
		}//else {
			//System.out.println("猜对了");
		//}
		
	}
}
